package so.wy.servicecenter.businessbed.service.order;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import so.wy.servicecenter.base.frame.baseopt.BaseOptService;
import so.wy.servicecenter.businessbed.dao.rdb.order.order_price.OrderPriceDAO;
import so.wy.servicecenter.businessbed.dao.rdb.order.order_price.OrderPriceDO;
import so.wy.servicecenter.businessbed.service.order.dto.OrderPriceDTO;

@Service
@Scope("prototype")
public class OrderPriceService extends BaseOptService<OrderPriceDAO, OrderPriceDO, OrderPriceDTO> {

    @Override
    protected OrderPriceDTO convert2DTO(OrderPriceDO orderPriceDO) {
        return new OrderPriceDTO(orderPriceDO);
    }

    @Override
    protected OrderPriceDO convert2DO(OrderPriceDTO orderPriceQuery) {
        return orderPriceQuery.convert2DO();
    }
}
